package com.tushare.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tushare.entity.StkHolderNumber;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-03-13
 */
public interface StkHolderNumberMapper extends BaseMapper<StkHolderNumber> {

    List<StkHolderNumber> getStkHolderNumberByTsCode(@Param("ts_code") String ts_code, @Param("end_date") int end_date);

    List<StkHolderNumber> getHighStock(@Param("begin_date") int begin_date, @Param("end_date") int end_date);

    boolean saveOrUpdateBatch(@Param("list") List<StkHolderNumber> list);

    boolean deleteAllStkHolderNumber();

}
